﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ParsAvecMoi.Data;
using System.Data.Linq;

namespace ParsAvecMoi.Logic.Identification
{
   public static class Naviguer
    {
       
       public static Personne SeAuthentifier(string login, string motDePasse)
       {
           ParsAvecMoiEntities dc = new ParsAvecMoiEntities();

           Personne someOne;
           var req = from p in dc.Personne where ( (p.email == login.id) && (p.prenom == motDePasse)) select p ;
           someOne = req.Single();

       }

       public static bool SeDeconnecter( Personne moi) 
       {
       }
    }
}
